import React, { Component } from "react";
import { Row, Col } from "antd";
import FirstPlantChild from "./FirstPlantChild";


class FirstPlant extends Component {
    constructor(props) {
        super(props);
        this.state = {
            data: [],
        };
    }
    componentDidUpdate() {
        console.log('wwsw', this.props);
    }
    render() {
        const { fakeJson } = this.props;
        return (
            <div>
                {/* 整体布局一整行>俩列 */}
                <Row className="face-plate" gutter={[8, 8]}>
                    {/* 左边俩块面板开始 */}
                    {
                        fakeJson.map((item) => {
                            return (<Col xs={24} sm={24} md={24} lg={12}>
                                <FirstPlantChild realData={item} />
                            </Col>)
                        })
                    }
                    {/* 左边俩块面板结束 */}
                    {/* 右边两块面板开始 */}
                    {/* <Col xs={24} sm={24} md={24} lg={12}>
                        <FirstPlantChild realData={this.props.firstPlant2} />
                    </Col> */}
                    {/* 右边两块面板结束 */}
                </Row>
            </div>
        );
    }
}
export default FirstPlant;
